package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author hemiaojun
 * @Date 2020/10/22 12:29
 */
@ApiModel("后台发放津贴Bo")
@Setter
@Getter
public class UserSubsidyBo {

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @NotNull(message = "津贴金额不能为空")
    @DecimalMax(value = "5000.00",message = "单次赠送不能超过5000元")
    @ApiModelProperty("奖励津贴")
    private BigDecimal rewardSubsidy;

    @ApiModelProperty("说明")
    private String msg;
}
